/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'
import i18n from '@/lang/index'

const systemManageRouter = {
  path: '/adminh5/systemmanage',
  component: Layout,
  redirect: '/adminh5/systemmanage/admin/list',
  name: 'adminManage',
  alwaysShow: true,
  meta: {
    title: i18n.t('Users'),
    icon: 'lock'
  },
  children: [
    {
      path: 'admin',
      component: () => import('@/views/adminh5/systemmanage/admin/list'),
      name: 'adminList',
      meta: { title: i18n.t('Admins'), icon: 'list' }
    },
    {
      path: 'role',
      component: () => import('@/views/adminh5/systemmanage/role/list'),
      name: 'roleList',
      meta: { title: i18n.t('Roles'), icon: 'list' }
    },
    {
      path: 'menu',
      component: () => import('@/views/adminh5/systemmanage/menu/list'),
      name: 'menuList',
      meta: { title: i18n.t('SystemMenu'), icon: 'list' }
    },
    {
      path: 'permission',
      component: () => import('@/views/adminh5/systemmanage/permission/list'),
      name: 'permissionList',
      meta: { title: i18n.t('Permissions'), icon: 'list' }
    },
    {
      path: 'operationlog',
      component: () => import('@/views/adminh5/systemmanage/operationlog/list'),
      name: 'operationLogList',
      meta: { title: i18n.t('Operationlog'), icon: 'list' }
    }
  ]
}
export default systemManageRouter
